package xyz.heyaoshare.core.controller.auth.vo.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED;

/**
 * 用户登录请求对象
 * @author YueHe
 * @version 0.0.1
 * @since 2025/6/25 下午2:38
 */
@Data
@Schema(description = "用户登录请求对象")
public class UserLoginReqVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "用户名不能为空")
    @Schema(description = "用户名", requiredMode = REQUIRED)
    private String username;

    @NotBlank(message = "密码不能为空")
    @Schema(description = "密码", requiredMode = REQUIRED)
    private String password;

    @Schema(description = "记住我")
    private Boolean rememberMe = Boolean.FALSE;

}